<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/ble/softdevice/ble_gap.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('ble__gap_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/ble/softdevice/ble_gap.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2011 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is confidential property of Nordic Semiconductor. The use,</span>
<a name="l00004"></a>00004 <span class="comment"> * copying, transfer or disclosure of such information is prohibited except by express written</span>
<a name="l00005"></a>00005 <span class="comment"> * agreement with Nordic Semiconductor.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef BLE_GAP_H__</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define BLE_GAP_H__</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;ble_types.h&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;ble_ranges.h&quot;</span>
<a name="l00019"></a>00019 
<a name="l00023"></a>00023 <span class="keyword">enum</span>
<a name="l00024"></a>00024 {
<a name="l00025"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a313fb3d1fb123ab3eb11183530080590">00025</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a313fb3d1fb123ab3eb11183530080590">SVC_BLE_GAP_ADDRESS_SET</a>  = BLE_GAP_SVC_BASE,  
<a name="l00026"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a037bc32d190f862e1cb41adae7013d02">00026</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a037bc32d190f862e1cb41adae7013d02">SVC_BLE_GAP_ADDRESS_GET</a>,                      
<a name="l00027"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a792241f639def89dc40dc5503c4f2ae0">00027</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a792241f639def89dc40dc5503c4f2ae0">SVC_BLE_GAP_ADV_DATA_SET</a>,                     
<a name="l00028"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab22135018306dd20c0e1cda4344d56e0">00028</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab22135018306dd20c0e1cda4344d56e0">SVC_BLE_GAP_ADV_START</a>,                        
<a name="l00029"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388afcf97c9e4df93974c7c981da264cf591">00029</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388afcf97c9e4df93974c7c981da264cf591">SVC_BLE_GAP_ADV_STOP</a>,                         
<a name="l00030"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388abbc353cac52427644531fedb4decb613">00030</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388abbc353cac52427644531fedb4decb613">SVC_BLE_GAP_SCAN_START</a>,                       
<a name="l00031"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388aab6587e43f9b598873b0449d5460b278">00031</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388aab6587e43f9b598873b0449d5460b278">SVC_BLE_GAP_SCAN_STOP</a>,                        
<a name="l00032"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a47c8e8e10359119fa29f1a8a7a2564da">00032</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a47c8e8e10359119fa29f1a8a7a2564da">SVC_BLE_GAP_CONNECT</a>,                          
<a name="l00033"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a2b0a42a3288defd163ac7527f03b2cfb">00033</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a2b0a42a3288defd163ac7527f03b2cfb">SVC_BLE_GAP_CONNECT_CANCEL</a>,                   
<a name="l00034"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a215cd60fbc5f2c0a73892f1fedbb6f09">00034</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a215cd60fbc5f2c0a73892f1fedbb6f09">SVC_BLE_GAP_CONN_PARAM_UPDATE</a>,                
<a name="l00035"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a74cf376ccf8351e0d610249f6a51973a">00035</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a74cf376ccf8351e0d610249f6a51973a">SVC_BLE_GAP_DISCONNECT</a>,                       
<a name="l00036"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a3474bf6d7a4463932a32273d2ebc2974">00036</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a3474bf6d7a4463932a32273d2ebc2974">SVC_BLE_GAP_TX_POWER_SET</a>,                     
<a name="l00037"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a0a669a1117de62a62d8dead7022fd860">00037</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a0a669a1117de62a62d8dead7022fd860">SVC_BLE_GAP_APPEARANCE_SET</a>,                   
<a name="l00038"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a93075ab436906799527e861b38a4d7e7">00038</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a93075ab436906799527e861b38a4d7e7">SVC_BLE_GAP_APPEARANCE_GET</a>,                   
<a name="l00039"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a7dad266415e81a1c4645af197d6787e3">00039</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a7dad266415e81a1c4645af197d6787e3">SVC_BLE_GAP_PPCP_SET</a>,                         
<a name="l00040"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab95d8cfdfd3181fd39a657b1173ea7cf">00040</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab95d8cfdfd3181fd39a657b1173ea7cf">SVC_BLE_GAP_PPCP_GET</a>,                         
<a name="l00041"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a1f819b01705c2d8ade78da44c76030cf">00041</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a1f819b01705c2d8ade78da44c76030cf">SVC_BLE_GAP_DEVICE_NAME_SET</a>,                  
<a name="l00042"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ad5892689bd3ea0b6e838a418adc49ab5">00042</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ad5892689bd3ea0b6e838a418adc49ab5">SVC_BLE_GAP_DEVICE_NAME_GET</a>,                  
<a name="l00043"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ac92325630b62ce381bb4a9b0f6c78754">00043</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ac92325630b62ce381bb4a9b0f6c78754">SVC_BLE_GAP_AUTHENTICATE</a>,                     
<a name="l00044"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab5d784f318769174494b39ab40f509d5">00044</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab5d784f318769174494b39ab40f509d5">SVC_BLE_GAP_SEC_PARAMS_REPLY</a>,                 
<a name="l00045"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388acb306b447341b9b4724bf47d112e1984">00045</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388acb306b447341b9b4724bf47d112e1984">SVC_BLE_GAP_AUTH_KEY_REPLY</a>,                   
<a name="l00046"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a2bcbc0d87a5899f52422477a890d7a1d">00046</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a2bcbc0d87a5899f52422477a890d7a1d">SVC_BLE_GAP_SEC_INFO_REPLY</a>,                   
<a name="l00047"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ac15ea2205b551c53a9325ef59d59c6e4">00047</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ac15ea2205b551c53a9325ef59d59c6e4">SVC_BLE_GAP_CONN_SEC_GET</a>,                     
<a name="l00048"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a493a28e8f7fe2602e59381cf95ca9508">00048</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a493a28e8f7fe2602e59381cf95ca9508">SVC_BLE_GAP_RSSI_START</a>,                       
<a name="l00049"></a><a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab089183ea13ab23435a405610cab44cc">00049</a>   <a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab089183ea13ab23435a405610cab44cc">SVC_BLE_GAP_RSSI_STOP</a>,                        
<a name="l00050"></a>00050 };
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00055"></a><a class="code" href="group___b_l_e___e_r_r_o_r_s___g_a_p.html#ga996146eb2c3b244f044b5cd121f8b826">00055</a> <span class="preprocessor">#define BLE_ERROR_GAP_UUID_LIST_MISMATCH            (NRF_GAP_ERR_BASE + 0x000)  </span>
<a name="l00056"></a><a class="code" href="group___b_l_e___e_r_r_o_r_s___g_a_p.html#gaa65c2f6a6eba52654e2b6febc5c3ba8c">00056</a> <span class="preprocessor">#define BLE_ERROR_GAP_DISCOVERABLE_WITH_WHITELIST   (NRF_GAP_ERR_BASE + 0x001)  </span>
<a name="l00057"></a><a class="code" href="group___b_l_e___e_r_r_o_r_s___g_a_p.html#ga3eda228736d6c1dcbcf9aba2bd059068">00057</a> <span class="preprocessor">#define BLE_ERROR_GAP_INVALID_BLE_ADDR              (NRF_GAP_ERR_BASE + 0x002)  </span>
<a name="l00065"></a><a class="code" href="group___b_l_e___g_a_p___r_o_l_e_s.html#ga8164b32f4fd65997d0523cd7c5735166">00065</a> <span class="preprocessor">#define BLE_GAP_ROLE_INVALID     0x0            </span>
<a name="l00066"></a><a class="code" href="group___b_l_e___g_a_p___r_o_l_e_s.html#ga12e431897d73a3ce88fab8a4dbd90497">00066</a> <span class="preprocessor">#define BLE_GAP_ROLE_PERIPH      0x1            </span>
<a name="l00067"></a><a class="code" href="group___b_l_e___g_a_p___r_o_l_e_s.html#ga6b9440660a70146392d27c849431fadb">00067</a> <span class="preprocessor">#define BLE_GAP_ROLE_CENTRAL     0x2            </span>
<a name="l00073"></a><a class="code" href="group___b_l_e___g_a_p___t_i_m_e_o_u_t___t_y_p_e_s.html#gafee7b7095fb21ed922c6719cc1c2d23f">00073</a> <span class="preprocessor">#define BLE_GAP_TIMEOUT_TYPE_ADVERTISEMENT              0x00 </span>
<a name="l00074"></a><a class="code" href="group___b_l_e___g_a_p___t_i_m_e_o_u_t___t_y_p_e_s.html#ga40fc9c60f95afea35fad75e13e1cf431">00074</a> <span class="preprocessor">#define BLE_GAP_TIMEOUT_TYPE_SECURITY_REQUEST           0x01 </span>
<a name="l00080"></a><a class="code" href="group___b_l_e___g_a_p___a_d_d_r___t_y_p_e_s.html#gaa5e499423d88b16817efd4d5ec10fd6e">00080</a> <span class="preprocessor">#define BLE_GAP_ADDR_TYPE_PUBLIC                        0x00 </span>
<a name="l00081"></a><a class="code" href="group___b_l_e___g_a_p___a_d_d_r___t_y_p_e_s.html#gabe27b8f22c3a52413fa064c2ee1e4fba">00081</a> <span class="preprocessor">#define BLE_GAP_ADDR_TYPE_RANDOM_STATIC                 0x01 </span>
<a name="l00082"></a><a class="code" href="group___b_l_e___g_a_p___a_d_d_r___t_y_p_e_s.html#gae166d654401b0ed83ad7073f31467b70">00082</a> <span class="preprocessor">#define BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE     0x02 </span>
<a name="l00083"></a><a class="code" href="group___b_l_e___g_a_p___a_d_d_r___t_y_p_e_s.html#ga86fe5e506ba152ec4d60ac6daaca2aef">00083</a> <span class="preprocessor">#define BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE 0x03 </span>
<a name="l00088"></a><a class="code" href="group___b_l_e___g_a_p.html#ga65d5382341d5a38c5a051ac7198ddb03">00088</a> <span class="preprocessor">#define BLE_GAP_ADDR_LEN            6</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 
<a name="l00094"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gad4dccf6a7d878c19e731f74608e84d6c">00094</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_FLAGS                               0x01 </span>
<a name="l00095"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga5a435197cb526f047615057c662cbeab">00095</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_16BIT_SERVICE_UUID_MORE_AVAILABLE   0x02 </span>
<a name="l00096"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gaa8f9c66d6590289f0b3e96965216a2ea">00096</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_16BIT_SERVICE_UUID_COMPLETE         0x03 </span>
<a name="l00097"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga6893d5ea5260913106e1c736c0ebd09d">00097</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_32BIT_SERVICE_UUID_MORE_AVAILABLE   0x04 </span>
<a name="l00098"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga6b799159172da6402f9c3ba4539b6990">00098</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_32BIT_SERVICE_UUID_COMPLETE         0x05 </span>
<a name="l00099"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gaa2ed6e499fc1427a8ce9c48502092c1f">00099</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_128BIT_SERVICE_UUID_MORE_AVAILABLE  0x06 </span>
<a name="l00100"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga06d8b368ebe6d72db8c32a22ae9a31f0">00100</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_128BIT_SERVICE_UUID_COMPLETE        0x07 </span>
<a name="l00101"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga2519c8afff0bc77341083d2e19d4df78">00101</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SHORT_LOCAL_NAME                    0x08 </span>
<a name="l00102"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gad18f5d40038aab7e5361e838799fbfd9">00102</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME                 0x09 </span>
<a name="l00103"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gad6b6e3a9e22b85c65a6dcca19bea561f">00103</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_TX_POWER_LEVEL                      0x0A </span>
<a name="l00104"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gaa7799dd89d9e22399811ca631a3e30fb">00104</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_CLASS_OF_DEVICE                     0x0D </span>
<a name="l00105"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga1b716977fca8665e15324ee9d9a779af">00105</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SIMPLE_PAIRING_HASH_C               0x0E </span>
<a name="l00106"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gacea2cc41f5abbe254297ef6223b53f1d">00106</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SIMPLE_PAIRING_RANDOMIZER_R         0x0F </span>
<a name="l00107"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga2a9ca7e80accf252c17b7d4b2caa78a6">00107</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SECURITY_MANAGER_TK_VALUE           0x10 </span>
<a name="l00108"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gaaa4206d55ee6dbe9174d7c5d44a2c1e9">00108</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SECURITY_MANAGER_OOB_FLAGS          0x11 </span>
<a name="l00109"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gaf7738c9995e4110068c9ff6ba56b9f23">00109</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SLAVE_CONNECTION_INTERVAL_RANGE     0x12 </span>
<a name="l00110"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga5299bd2766c19652565b6066e547019d">00110</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SOLICITED_SERVICE_UUIDS_16BIT       0x14 </span>
<a name="l00111"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gacdbb35f283cba471a6fc6926fa6bf28f">00111</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SOLICITED_SERVICE_UUIDS_128BIT      0x15 </span>
<a name="l00112"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga91a9d7fd9b76c8ccfee764156286a8c4">00112</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_SERVICE_DATA                        0x16 </span>
<a name="l00113"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gac28cc28c688219b0ed1dddce8c52b465">00113</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_PUBLIC_TARGET_ADDRESS               0x17 </span>
<a name="l00114"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#gaee963029e3254cf5f737a0611869178f">00114</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_RANDOM_TARGET_ADDRESS               0x18 </span>
<a name="l00115"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga44bd5cad43c8a8c470361df0bdff0a04">00115</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_APPEARANCE                          0x19 </span>
<a name="l00116"></a><a class="code" href="group___b_l_e___g_a_p___a_d___t_y_p_e___d_e_f_i_n_i_t_i_o_n_s.html#ga3c8bb673d4749edc0e5a0d5aa9aa67e1">00116</a> <span class="preprocessor">#define BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA          0xFF </span>
<a name="l00122"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___i_n_t_e_r_v_a_l_s.html#gaf61691584387648b33a032c934bcd094">00122</a> <span class="preprocessor">#define BLE_GAP_ADV_INTERVAL_MIN        0x0020 </span>
<a name="l00123"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___i_n_t_e_r_v_a_l_s.html#gaf0853bcb2a170efd2bb58e3a6b3c8ca5">00123</a> <span class="preprocessor">#define BLE_GAP_ADV_NONCON_INTERVAL_MIN 0x00A0 </span>
<a name="l00124"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___i_n_t_e_r_v_a_l_s.html#gada06c7f328e5bcc50ce55f9f567129ca">00124</a> <span class="preprocessor">#define BLE_GAP_ADV_INTERVAL_MAX        0x4000 </span>
<a name="l00129"></a><a class="code" href="group___b_l_e___g_a_p.html#ga6d6ae1b58ea2dc641e4dc30e8e2dcc0b">00129</a> <span class="preprocessor">#define  BLE_GAP_ADV_MAX_SIZE       31</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span>
<a name="l00131"></a>00131 
<a name="l00133"></a>00133 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00134"></a>00134 {
<a name="l00135"></a><a class="code" href="structble__gap__addr__t.html#aa098ac8ac7e4aa630912ffb67aeaa363">00135</a>   uint8_t <a class="code" href="structble__gap__addr__t.html#aa098ac8ac7e4aa630912ffb67aeaa363">addr_type</a>;                    
<a name="l00136"></a><a class="code" href="structble__gap__addr__t.html#a7a219df70e6325313a70b596b79c5c2b">00136</a>   uint8_t addr[<a class="code" href="group___b_l_e___g_a_p.html#ga65d5382341d5a38c5a051ac7198ddb03" title="BLE address length.">BLE_GAP_ADDR_LEN</a>];       
<a name="l00137"></a>00137 } <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a>;
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 
<a name="l00142"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___t_y_p_e_s.html#ga6cc0db53453977ee0a31e59f07de2b86">00142</a> <span class="preprocessor">#define BLE_GAP_ADV_TYPE_ADV_IND          0x00   </span>
<a name="l00143"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___t_y_p_e_s.html#gafefde83f6b598e7fb14868e0610bdf43">00143</a> <span class="preprocessor">#define BLE_GAP_ADV_TYPE_ADV_DIRECT_IND   0x01   </span>
<a name="l00144"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___t_y_p_e_s.html#ga594ca8490efef1702e8ccb6a28d2a1de">00144</a> <span class="preprocessor">#define BLE_GAP_ADV_TYPE_ADV_SCAN_IND     0x02   </span>
<a name="l00145"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___t_y_p_e_s.html#ga8c86ca45ebffc3938fd97f9556daa49c">00145</a> <span class="preprocessor">#define BLE_GAP_ADV_TYPE_ADV_NONCONN_IND  0x03   </span>
<a name="l00151"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___f_i_l_t_e_r___p_o_l_i_c_i_e_s.html#ga0b0393df73db101d6cbfaede2dbb7ea6">00151</a> <span class="preprocessor">#define BLE_GAP_ADV_FP_ANY                0x00   </span>
<a name="l00152"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___f_i_l_t_e_r___p_o_l_i_c_i_e_s.html#gae2dcdb81f0e1e024b82b244058656d26">00152</a> <span class="preprocessor">#define BLE_GAP_ADV_FP_FILTER_SCANREQ     0x01   </span>
<a name="l00153"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___f_i_l_t_e_r___p_o_l_i_c_i_e_s.html#gac37d0158c7458cb4250f9bdfba593858">00153</a> <span class="preprocessor">#define BLE_GAP_ADV_FP_FILTER_CONNREQ     0x02   </span>
<a name="l00154"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___f_i_l_t_e_r___p_o_l_i_c_i_e_s.html#ga38ff579b96a5ad3abd2e4eb370dd1de6">00154</a> <span class="preprocessor">#define BLE_GAP_ADV_FP_FILTER_BOTH        0x03   </span>
<a name="l00160"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___t_i_m_e_o_u_t___v_a_l_u_e_s.html#ga015a498d3d56d7642dc7456fb12e08b6">00160</a> <span class="preprocessor">#define BLE_GAP_ADV_TIMEOUT_LIMITED_MAX      180 </span>
<a name="l00161"></a><a class="code" href="group___b_l_e___g_a_p___a_d_v___t_i_m_e_o_u_t___v_a_l_u_e_s.html#ga09100a0666512ed8cd2e600627197254">00161</a> <span class="preprocessor">#define BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED  0 </span>
<a name="l00167"></a><a class="code" href="group___b_l_e___g_a_p___d_i_s_c___m_o_d_e_s.html#ga8e91357ef403b950303f5be6e474ba2b">00167</a> <span class="preprocessor">#define BLE_GAP_DISC_MODE_UNDISCOVERABLE  0x00   </span>
<a name="l00168"></a><a class="code" href="group___b_l_e___g_a_p___d_i_s_c___m_o_d_e_s.html#ga5c5243da93bae524088eefd608656012">00168</a> <span class="preprocessor">#define BLE_GAP_DISC_MODE_LIMITED         0x05   </span>
<a name="l00169"></a><a class="code" href="group___b_l_e___g_a_p___d_i_s_c___m_o_d_e_s.html#ga124514248a211b305eeac9cc370c7d77">00169</a> <span class="preprocessor">#define BLE_GAP_DISC_MODE_GENERAL         0x06   </span>
<a name="l00170"></a><a class="code" href="group___b_l_e___g_a_p___d_i_s_c___m_o_d_e_s.html#ga346a5b47f4b8f94a08f320a0d8c14c18">00170</a> <span class="preprocessor">#define BLE_GAP_DISC_BR_EDR_NOT_SUPPORTED 0x04   </span>
<a name="l00176"></a><a class="code" href="group___b_l_e___g_a_p___i_o___c_a_p_s.html#ga4e2f9010ba35ab6488ec181f75786435">00176</a> <span class="preprocessor">#define BLE_GAP_IO_CAPS_DISPLAY_ONLY      0x00   </span>
<a name="l00177"></a><a class="code" href="group___b_l_e___g_a_p___i_o___c_a_p_s.html#ga88681e29c52a54de028e2ee164d2403b">00177</a> <span class="preprocessor">#define BLE_GAP_IO_CAPS_DISPLAY_YESNO     0x01   </span>
<a name="l00178"></a><a class="code" href="group___b_l_e___g_a_p___i_o___c_a_p_s.html#ga65df849ce31a65393bd89ef65a7575b4">00178</a> <span class="preprocessor">#define BLE_GAP_IO_CAPS_KEYBOARD_ONLY     0x02   </span>
<a name="l00179"></a><a class="code" href="group___b_l_e___g_a_p___i_o___c_a_p_s.html#gad11df80d3ac9d375b320363694ec0a03">00179</a> <span class="preprocessor">#define BLE_GAP_IO_CAPS_NONE              0x03   </span>
<a name="l00180"></a><a class="code" href="group___b_l_e___g_a_p___i_o___c_a_p_s.html#gaacd3ccc6340303a1edcc7c718f3c1e6f">00180</a> <span class="preprocessor">#define BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY  0x04   </span>
<a name="l00186"></a><a class="code" href="group___b_l_e___g_a_p___a_u_t_h___k_e_y___t_y_p_e_s.html#ga869af3b1376d25aec9ae236e5772d7f1">00186</a> <span class="preprocessor">#define BLE_GAP_AUTH_KEY_TYPE_NONE        0x00   </span>
<a name="l00187"></a><a class="code" href="group___b_l_e___g_a_p___a_u_t_h___k_e_y___t_y_p_e_s.html#ga914a323fb165826d2995ef9d79b341e6">00187</a> <span class="preprocessor">#define BLE_GAP_AUTH_KEY_TYPE_PASSKEY     0x01   </span>
<a name="l00188"></a><a class="code" href="group___b_l_e___g_a_p___a_u_t_h___k_e_y___t_y_p_e_s.html#gaf9f173da3e04e3c8054cbbeaa488c3d1">00188</a> <span class="preprocessor">#define BLE_GAP_AUTH_KEY_TYPE_OOB         0x02   </span>
<a name="l00193"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#gaa0334dea24e449e5c28c88bbe8a1d00f">00193</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_SUCCESS                0x00  </span>
<a name="l00194"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga4bdb61f7294a378778fe478597b17e07">00194</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_TIMEOUT                0x01  </span>
<a name="l00195"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga6ba7df46db25ac8f2f2b1170106dda25">00195</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_PDU_INVALID            0x02  </span>
<a name="l00196"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#gab86b31f7e0c4a669cdffa4eb71bb0e89">00196</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_PASSKEY_ENTRY_FAILED   0x81  </span>
<a name="l00197"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#gac29bfa067dbceb9b98e23aefcf0cc155">00197</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_OOB_NOT_AVAILABLE      0x82  </span>
<a name="l00198"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#gadf389ac11506ee7d7a0c6823d7c7cb5c">00198</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_AUTH_REQ               0x83  </span>
<a name="l00199"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga9d1c29d319e7b1b77d8bbae74760cfe5">00199</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_CONFIRM_VALUE          0x84  </span>
<a name="l00200"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga87ed8db7604006675930bdf5fa79ae70">00200</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP       0x85  </span>
<a name="l00201"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga3e8868907178ada2854635f2d7ca8ab0">00201</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_ENC_KEY_SIZE           0x86  </span>
<a name="l00202"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga7eb7986157fca57470acee71e5940d77">00202</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_SMP_CMD_UNSUPPORTED    0x87  </span>
<a name="l00203"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga7e767feadf3f8ccef76faff23e12e4c9">00203</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_UNSPECIFIED            0x88  </span>
<a name="l00204"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga523c9c966eb5fa019fb265a9010775b0">00204</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_REPEATED_ATTEMPTS      0x89  </span>
<a name="l00205"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s.html#ga609204cf12de8edbeaf29077a1c17ba7">00205</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_INVALID_PARAMS         0x8A  </span>
<a name="l00210"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s___s_o_u_r_c_e_s.html#ga7c6035361c3893781b15f788954ea564">00210</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_SOURCE_LOCAL           0x00  </span>
<a name="l00211"></a><a class="code" href="group___b_l_e___g_a_p___s_e_c___s_t_a_t_u_s___s_o_u_r_c_e_s.html#gacd7d314e3a27338396a80cf38c71f1e2">00211</a> <span class="preprocessor">#define BLE_GAP_SEC_STATUS_SOURCE_REMOTE          0x01  </span>
<a name="l00216"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga9b7880da1b563d33b45f68cfdd9f6d1d">00216</a> <span class="preprocessor">#define BLE_GAP_CP_MIN_CONN_INTVL_NONE           0xFFFF  </span>
<a name="l00217"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga7995b13da25ea7cd40a21da59306def9">00217</a> <span class="preprocessor">#define BLE_GAP_CP_MIN_CONN_INTVL_MIN            0x0006  </span>
<a name="l00218"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga6ec422217d939654d1dd252abd169d82">00218</a> <span class="preprocessor">#define BLE_GAP_CP_MIN_CONN_INTVL_MAX            0x0C80  </span>
<a name="l00219"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#gadda6e71a42de04bd48870afcad38a81c">00219</a> <span class="preprocessor">#define BLE_GAP_CP_MAX_CONN_INTVL_NONE           0xFFFF  </span>
<a name="l00220"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#gac6071964ea94ef548da1beaf23f032da">00220</a> <span class="preprocessor">#define BLE_GAP_CP_MAX_CONN_INTVL_MIN            0x0006  </span>
<a name="l00221"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga6bf5d65e6d586000cd5f7ba43c0d2e76">00221</a> <span class="preprocessor">#define BLE_GAP_CP_MAX_CONN_INTVL_MAX            0x0C80  </span>
<a name="l00222"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga122ace1cb2bbc5e346ae167e48f7e07e">00222</a> <span class="preprocessor">#define BLE_GAP_CP_SLAVE_LATENCY_MAX             0x03E8  </span>
<a name="l00223"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga86dea9b13bb39d0f50ee2c6e12184864">00223</a> <span class="preprocessor">#define BLE_GAP_CP_CONN_SUP_TIMEOUT_NONE         0xFFFF  </span>
<a name="l00224"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#gad6c79a8455ea1155d03321f3379dd415">00224</a> <span class="preprocessor">#define BLE_GAP_CP_CONN_SUP_TIMEOUT_MIN          0x000A  </span>
<a name="l00225"></a><a class="code" href="group___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html#ga1db7005189c241b0eba9209103bddc8d">00225</a> <span class="preprocessor">#define BLE_GAP_CP_CONN_SUP_TIMEOUT_MAX          0x0C80  </span>
<a name="l00230"></a><a class="code" href="group___b_l_e___g_a_p.html#gac2eb594dd57920a845941ba29990022d">00230</a> <span class="preprocessor">#define BLE_GAP_DEVNAME_MAX_LEN           20</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span>
<a name="l00233"></a>00233 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00234"></a>00234 {
<a name="l00235"></a><a class="code" href="structble__gap__conn__params__t.html#ac927a642ee2203f875fcce1eabb5fa64">00235</a>   uint16_t <a class="code" href="structble__gap__conn__params__t.html#ac927a642ee2203f875fcce1eabb5fa64">min_conn_interval</a>;         
<a name="l00236"></a><a class="code" href="structble__gap__conn__params__t.html#a0aec1884f340406a5194b772da017d7b">00236</a>   uint16_t <a class="code" href="structble__gap__conn__params__t.html#a0aec1884f340406a5194b772da017d7b">max_conn_interval</a>;         
<a name="l00237"></a><a class="code" href="structble__gap__conn__params__t.html#a39219ac00a0e8ed843ee32b9df8be11e">00237</a>   uint16_t <a class="code" href="structble__gap__conn__params__t.html#a39219ac00a0e8ed843ee32b9df8be11e">slave_latency</a>;             
<a name="l00238"></a><a class="code" href="structble__gap__conn__params__t.html#a2089e7fb26f6b24882d1437eb5553bc7">00238</a>   uint16_t <a class="code" href="structble__gap__conn__params__t.html#a2089e7fb26f6b24882d1437eb5553bc7">conn_sup_timeout</a>;          
<a name="l00239"></a>00239 } <a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a>;
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 
<a name="l00253"></a>00253 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00254"></a>00254 {
<a name="l00255"></a><a class="code" href="structble__gap__conn__sec__mode__t.html#a1dd8962926df77b242ec001ceefcc37e">00255</a>   uint8_t sm : 4;                     
<a name="l00256"></a><a class="code" href="structble__gap__conn__sec__mode__t.html#a39da7e92d8598367bdb395ff043f63b5">00256</a>   uint8_t lv : 4;                     
<a name="l00258"></a>00258 } <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a>;
<a name="l00259"></a>00259 
<a name="l00260"></a>00260 
<a name="l00266"></a><a class="code" href="group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#ga1cf3822f8bb11e28931afbb9179665b7">00266</a> <span class="preprocessor">#define BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(ptr)         do {(ptr)-&gt;sm = 0; (ptr)-&gt;lv = 0;} while(0)</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span>
<a name="l00268"></a><a class="code" href="group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#ga2abd1c711d49a4d4b1ab9bf27cafffbb">00268</a> <span class="preprocessor">#define BLE_GAP_CONN_SEC_MODE_SET_OPEN(ptr)              do {(ptr)-&gt;sm = 1; (ptr)-&gt;lv = 1;} while(0)</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span>
<a name="l00270"></a><a class="code" href="group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#ga99f7b13b3c63bcaffe700c9f28c3ee3f">00270</a> <span class="preprocessor">#define BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(ptr)       do {(ptr)-&gt;sm = 1; (ptr)-&gt;lv = 2;} while(0)</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span>
<a name="l00272"></a><a class="code" href="group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#ga9130b57af7649cba1702b99e1594736c">00272</a> <span class="preprocessor">#define BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(ptr)     do {(ptr)-&gt;sm = 1; (ptr)-&gt;lv = 3;} while(0)</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span>
<a name="l00274"></a><a class="code" href="group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#ga23157805ecca708f331d888844146a0e">00274</a> <span class="preprocessor">#define BLE_GAP_CONN_SEC_MODE_SET_SIGNED_NO_MITM(ptr)    do {(ptr)-&gt;sm = 2; (ptr)-&gt;lv = 1;} while(0)</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span>
<a name="l00276"></a><a class="code" href="group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#gaa709ac58667ebfe0c9830c9a142d83e4">00276</a> <span class="preprocessor">#define BLE_GAP_CONN_SEC_MODE_SET_SIGNED_WITH_MITM(ptr)  do {(ptr)-&gt;sm = 2; (ptr)-&gt;lv = 2;} while(0)</span>
<a name="l00277"></a>00277 <span class="preprocessor"></span>
<a name="l00281"></a>00281 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00282"></a>00282 {
<a name="l00283"></a><a class="code" href="structble__gap__conn__sec__t.html#a70ca42366fd570e2aa7fbfb8ff9fa950">00283</a>   <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> <a class="code" href="structble__gap__conn__sec__t.html#a70ca42366fd570e2aa7fbfb8ff9fa950">sec_mode</a>;           
<a name="l00284"></a><a class="code" href="structble__gap__conn__sec__t.html#a23cde447d5ad32ab028ab5e383232254">00284</a>   uint8_t                 <a class="code" href="structble__gap__conn__sec__t.html#a23cde447d5ad32ab028ab5e383232254">encr_key_size</a>;      
<a name="l00285"></a>00285 } <a class="code" href="structble__gap__conn__sec__t.html" title="GAP connection security status.">ble_gap_conn_sec_t</a>;
<a name="l00286"></a>00286 
<a name="l00287"></a>00287 
<a name="l00289"></a><a class="code" href="group___b_l_e___g_a_p.html#gae54d6eefffc70a3ded9ebbede87e6a51">00289</a> <span class="preprocessor">#define BLE_GAP_SEC_KEY_LEN 16</span>
<a name="l00290"></a>00290 <span class="preprocessor"></span>
<a name="l00291"></a>00291 
<a name="l00293"></a>00293 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00294"></a>00294 {
<a name="l00295"></a><a class="code" href="structble__gap__irk__t.html#afc7a40c7e747eef16a90f1e75a44983d">00295</a>   uint8_t irk[<a class="code" href="group___b_l_e___g_a_p.html#gae54d6eefffc70a3ded9ebbede87e6a51" title="GAP Security Key Length.">BLE_GAP_SEC_KEY_LEN</a>];   
<a name="l00296"></a>00296 } <a class="code" href="structble__gap__irk__t.html" title="Identity Resolving Key.">ble_gap_irk_t</a>;
<a name="l00297"></a>00297 
<a name="l00298"></a>00298 
<a name="l00300"></a>00300 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00301"></a>00301 {
<a name="l00302"></a><a class="code" href="structble__gap__whitelist__t.html#a5acf7d1b34810f682c6db841e002bca9">00302</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a>   ** <a class="code" href="structble__gap__whitelist__t.html#a5acf7d1b34810f682c6db841e002bca9">pp_addrs</a>;        
<a name="l00303"></a><a class="code" href="structble__gap__whitelist__t.html#aca75fb744e3dc086e102ec1fdac4c977">00303</a>   uint8_t             <a class="code" href="structble__gap__whitelist__t.html#aca75fb744e3dc086e102ec1fdac4c977">addr_count</a>;      
<a name="l00304"></a><a class="code" href="structble__gap__whitelist__t.html#ab8237904f2dec4cdd9c441afb2374aff">00304</a>   <a class="code" href="structble__gap__irk__t.html" title="Identity Resolving Key.">ble_gap_irk_t</a>    ** <a class="code" href="structble__gap__whitelist__t.html#ab8237904f2dec4cdd9c441afb2374aff">pp_irks</a>;         
<a name="l00305"></a><a class="code" href="structble__gap__whitelist__t.html#a108b2b32b411b5dec5c7ae4d1d895a54">00305</a>   uint8_t             <a class="code" href="structble__gap__whitelist__t.html#a108b2b32b411b5dec5c7ae4d1d895a54">irk_count</a>;       
<a name="l00306"></a>00306 } <a class="code" href="structble__gap__whitelist__t.html" title="White list struct.">ble_gap_whitelist_t</a>;
<a name="l00307"></a>00307 
<a name="l00308"></a>00308 
<a name="l00310"></a>00310 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00311"></a>00311 {
<a name="l00312"></a><a class="code" href="structble__gap__adv__params__t.html#a1d127017fb298b889f4ba24752d08b8e">00312</a>   uint8_t               <a class="code" href="structble__gap__adv__params__t.html#a1d127017fb298b889f4ba24752d08b8e">type</a>;                 
<a name="l00313"></a><a class="code" href="structble__gap__adv__params__t.html#a27909d1b865548f236a871af2b6aa584">00313</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a>*       <a class="code" href="structble__gap__adv__params__t.html#a27909d1b865548f236a871af2b6aa584">p_peer_addr</a>;          
<a name="l00314"></a><a class="code" href="structble__gap__adv__params__t.html#aefdab55ee0f22565a03a14d09cc71d12">00314</a>   uint8_t               <a class="code" href="structble__gap__adv__params__t.html#aefdab55ee0f22565a03a14d09cc71d12">fp</a>;                   
<a name="l00315"></a><a class="code" href="structble__gap__adv__params__t.html#adb87fb082d472fabc44d42aeaa67a842">00315</a>   <a class="code" href="structble__gap__whitelist__t.html" title="White list struct.">ble_gap_whitelist_t</a> * <a class="code" href="structble__gap__adv__params__t.html#adb87fb082d472fabc44d42aeaa67a842">p_whitelist</a>;          
<a name="l00316"></a><a class="code" href="structble__gap__adv__params__t.html#a6c52a3d605c056768b59164ce8df8334">00316</a>   uint16_t              <a class="code" href="structble__gap__adv__params__t.html#a6c52a3d605c056768b59164ce8df8334">interval</a>;             
<a name="l00317"></a><a class="code" href="structble__gap__adv__params__t.html#a7f1ad43d3bf79b40bc39dbb5a6c3a5ae">00317</a>   uint16_t              <a class="code" href="structble__gap__adv__params__t.html#a7f1ad43d3bf79b40bc39dbb5a6c3a5ae">timeout</a>;              
<a name="l00318"></a>00318 } <a class="code" href="structble__gap__adv__params__t.html" title="GAP advertising parameters.">ble_gap_adv_params_t</a>;
<a name="l00319"></a>00319 
<a name="l00320"></a>00320 
<a name="l00322"></a>00322 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00323"></a>00323 {
<a name="l00324"></a><a class="code" href="structble__gap__scan__params__t.html#aa69d890d38e8a1abafc8697d1760bb04">00324</a>   uint8_t    <a class="code" href="structble__gap__scan__params__t.html#aa69d890d38e8a1abafc8697d1760bb04">filter</a>;                    
<a name="l00325"></a><a class="code" href="structble__gap__scan__params__t.html#a05c940dbc220f5a723afd70071aebff8">00325</a>   uint8_t    active    : 1;             
<a name="l00326"></a><a class="code" href="structble__gap__scan__params__t.html#a1f78d8222711f4306ea63f3718a1c478">00326</a>   uint8_t    selective : 1;             
<a name="l00327"></a><a class="code" href="structble__gap__scan__params__t.html#a6c52a3d605c056768b59164ce8df8334">00327</a>   uint16_t   <a class="code" href="structble__gap__scan__params__t.html#a6c52a3d605c056768b59164ce8df8334">interval</a>;                  
<a name="l00328"></a><a class="code" href="structble__gap__scan__params__t.html#a6b307b5083cf92aca29549d780b44bd5">00328</a>   uint16_t   <a class="code" href="structble__gap__scan__params__t.html#a6b307b5083cf92aca29549d780b44bd5">window</a>;                    
<a name="l00329"></a><a class="code" href="structble__gap__scan__params__t.html#a7f1ad43d3bf79b40bc39dbb5a6c3a5ae">00329</a>   uint16_t   <a class="code" href="structble__gap__scan__params__t.html#a7f1ad43d3bf79b40bc39dbb5a6c3a5ae">timeout</a>;                   
<a name="l00330"></a>00330 } <a class="code" href="structble__gap__scan__params__t.html" title="GAP scanning parameters.">ble_gap_scan_params_t</a>;
<a name="l00331"></a>00331 
<a name="l00332"></a>00332 
<a name="l00334"></a>00334 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00335"></a>00335 {
<a name="l00336"></a><a class="code" href="structble__gap__sec__params__t.html#a7f1ad43d3bf79b40bc39dbb5a6c3a5ae">00336</a>   uint16_t   <a class="code" href="structble__gap__sec__params__t.html#a7f1ad43d3bf79b40bc39dbb5a6c3a5ae">timeout</a>;                   
<a name="l00337"></a><a class="code" href="structble__gap__sec__params__t.html#a3d9eee3a6a1d710b0e5d13b567675694">00337</a>   uint8_t    bond    : 1;               
<a name="l00338"></a><a class="code" href="structble__gap__sec__params__t.html#a808e5ec85cf1656a05a985386ba29276">00338</a>   uint8_t    mitm    : 1;               
<a name="l00339"></a><a class="code" href="structble__gap__sec__params__t.html#a81d248b843331e8798478feecf4f4c92">00339</a>   uint8_t    io_caps : 3;               
<a name="l00340"></a><a class="code" href="structble__gap__sec__params__t.html#a01318f39f3b3471bd44bf2f322331788">00340</a>   uint8_t    oob     : 1;               
<a name="l00341"></a><a class="code" href="structble__gap__sec__params__t.html#a66c3e526aae4ca7f3212ae207225b0a2">00341</a>   uint8_t    <a class="code" href="structble__gap__sec__params__t.html#a66c3e526aae4ca7f3212ae207225b0a2">min_key_size</a>;              
<a name="l00342"></a><a class="code" href="structble__gap__sec__params__t.html#a43d814618fbf7f63a318966dd84746c2">00342</a>   uint8_t    <a class="code" href="structble__gap__sec__params__t.html#a43d814618fbf7f63a318966dd84746c2">max_key_size</a>;              
<a name="l00343"></a>00343 } <a class="code" href="structble__gap__sec__params__t.html" title="GAP security parameters.">ble_gap_sec_params_t</a>;
<a name="l00344"></a>00344 
<a name="l00345"></a>00345 
<a name="l00347"></a>00347 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00348"></a>00348 {
<a name="l00349"></a><a class="code" href="structble__gap__enc__info__t.html#aa1147a1ab6ff4c36934461ca71d73bef">00349</a>   uint16_t  <a class="code" href="structble__gap__enc__info__t.html#aa1147a1ab6ff4c36934461ca71d73bef">div</a>;                        
<a name="l00350"></a><a class="code" href="structble__gap__enc__info__t.html#afea7de6b067769b333c4525b1e2f1c26">00350</a>   uint8_t   ltk[<a class="code" href="group___b_l_e___g_a_p.html#gae54d6eefffc70a3ded9ebbede87e6a51" title="GAP Security Key Length.">BLE_GAP_SEC_KEY_LEN</a>];   
<a name="l00351"></a><a class="code" href="structble__gap__enc__info__t.html#a536021868da51b49d25b2b99f1fda5c3">00351</a>   uint8_t   auth : 1;                   
<a name="l00352"></a><a class="code" href="structble__gap__enc__info__t.html#a0b575b43161725b9771736607620367b">00352</a>   uint8_t   ltk_len : 7;                
<a name="l00353"></a>00353 } <a class="code" href="structble__gap__enc__info__t.html" title="GAP Encryption Information.">ble_gap_enc_info_t</a>;
<a name="l00354"></a>00354 
<a name="l00355"></a>00355 
<a name="l00357"></a>00357 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00358"></a>00358 {
<a name="l00359"></a><a class="code" href="structble__gap__master__id__t.html#aced7ac80397d2549e5ecbb13de235936">00359</a>   uint16_t  <a class="code" href="structble__gap__master__id__t.html#aced7ac80397d2549e5ecbb13de235936">ediv</a>;                       
<a name="l00360"></a><a class="code" href="structble__gap__master__id__t.html#a52b1309a3806bfc8f032b9269d606ddd">00360</a>   uint8_t   rand[8];                    
<a name="l00361"></a>00361 } <a class="code" href="structble__gap__master__id__t.html" title="GAP Master Identification.">ble_gap_master_id_t</a>;
<a name="l00362"></a>00362 
<a name="l00363"></a>00363 
<a name="l00365"></a>00365 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00366"></a>00366 {
<a name="l00367"></a><a class="code" href="structble__gap__id__info__t.html#a52f4b4485022c585ff6e9f2125c4d2f9">00367</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a>  <a class="code" href="structble__gap__id__info__t.html#a52f4b4485022c585ff6e9f2125c4d2f9">addr</a>;                       
<a name="l00368"></a><a class="code" href="structble__gap__id__info__t.html#afc7a40c7e747eef16a90f1e75a44983d">00368</a>   uint8_t         irk[<a class="code" href="group___b_l_e___g_a_p.html#gae54d6eefffc70a3ded9ebbede87e6a51" title="GAP Security Key Length.">BLE_GAP_SEC_KEY_LEN</a>];   
<a name="l00369"></a>00369 } <a class="code" href="structble__gap__id__info__t.html" title="GAP Identity Information.">ble_gap_id_info_t</a>;
<a name="l00370"></a>00370 
<a name="l00371"></a>00371 
<a name="l00373"></a>00373 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00374"></a>00374 {
<a name="l00375"></a>00375   uint8_t   csrk[<a class="code" href="group___b_l_e___g_a_p.html#gae54d6eefffc70a3ded9ebbede87e6a51" title="GAP Security Key Length.">BLE_GAP_SEC_KEY_LEN</a>]; <span class="comment">/* Connection Signature Resolving Key. */</span>
<a name="l00376"></a>00376 } <a class="code" href="structble__gap__sign__info__t.html" title="GAP Signing Information.">ble_gap_sign_info_t</a>;
<a name="l00377"></a>00377 
<a name="l00378"></a>00378 
<a name="l00381"></a><a class="code" href="group___g_a_p___s_e_c___m_o_d_e_s.html#ga478a8b4b25a773dda9322206e5f2647f">00381</a> <span class="preprocessor">#define BLE_GAP_SEC_MODE 0x00 </span>
<a name="l00389"></a>00389 <span class="preprocessor">enum</span>
<a name="l00390"></a>00390 <span class="preprocessor"></span>{
<a name="l00391"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da41ba498a9fda3e1cd345f4454a582bd9">00391</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da41ba498a9fda3e1cd345f4454a582bd9">BLE_GAP_EVT_ADV_REPORT</a>  = BLE_GAP_EVT_BASE,   
<a name="l00392"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035daa0b4789724d202a13a5e7eab85c52957">00392</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035daa0b4789724d202a13a5e7eab85c52957">BLE_GAP_EVT_CONNECTED</a>,                        
<a name="l00393"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da057001bbd6ea9e615f19ef93cc0831ee">00393</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da057001bbd6ea9e615f19ef93cc0831ee">BLE_GAP_EVT_DISCONNECTED</a>,                     
<a name="l00394"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da9117fcf7efad580886dfad72e5d7cce7">00394</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da9117fcf7efad580886dfad72e5d7cce7">BLE_GAP_EVT_CONN_PARAM_UPDATE</a>,                
<a name="l00395"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da6c5eefbcfabbc1ce4a8bcbf550c285ae">00395</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da6c5eefbcfabbc1ce4a8bcbf550c285ae">BLE_GAP_EVT_SEC_PARAMS_REQUEST</a>,               
<a name="l00396"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035daf1c60079f92820cb933ebdb66d2d8d7d">00396</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035daf1c60079f92820cb933ebdb66d2d8d7d">BLE_GAP_EVT_SEC_INFO_REQUEST</a>,                 
<a name="l00397"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035daedc549f5a6853a542bf93ff5d155292a">00397</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035daedc549f5a6853a542bf93ff5d155292a">BLE_GAP_EVT_PASSKEY_DISPLAY</a>,                  
<a name="l00398"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da64d5d52e3ca8d8957bce011ad43d0f67">00398</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da64d5d52e3ca8d8957bce011ad43d0f67">BLE_GAP_EVT_AUTH_KEY_REQUEST</a>,                 
<a name="l00399"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da8958220152f7547da3b250b4f724877c">00399</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da8958220152f7547da3b250b4f724877c">BLE_GAP_EVT_AUTH_STATUS</a>,                      
<a name="l00400"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da361bcc6098a88825333464335f6d22cc">00400</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da361bcc6098a88825333464335f6d22cc">BLE_GAP_EVT_CONN_SEC_UPDATE</a>,                  
<a name="l00401"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da57e5d1061d9b3d1500fb3556a3fb8847">00401</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da57e5d1061d9b3d1500fb3556a3fb8847">BLE_GAP_EVT_TIMEOUT</a>,                          
<a name="l00402"></a><a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da4d1c7d552ad87b09c53a4d4352fc91e6">00402</a>   <a class="code" href="group___b_l_e___g_a_p.html#ggabc5c98fcc1211af2b80116dd6e0a035da4d1c7d552ad87b09c53a4d4352fc91e6">BLE_GAP_EVT_RSSI_CHANGED</a>,                     
<a name="l00403"></a>00403 };
<a name="l00404"></a>00404 
<a name="l00405"></a>00405 
<a name="l00407"></a>00407 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00408"></a>00408 {
<a name="l00409"></a><a class="code" href="structble__gap__evt__adv__report__t.html#a8481b11d618ee6688b80f1d55e97768d">00409</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> <a class="code" href="structble__gap__evt__adv__report__t.html#a8481b11d618ee6688b80f1d55e97768d">peer_addr</a>;                     
<a name="l00410"></a><a class="code" href="structble__gap__evt__adv__report__t.html#a3b962e67ba74725bd60ca3c29f785abe">00410</a>   int8_t         <a class="code" href="structble__gap__evt__adv__report__t.html#a3b962e67ba74725bd60ca3c29f785abe">rssi</a>;                          
<a name="l00411"></a><a class="code" href="structble__gap__evt__adv__report__t.html#a474b7a5444ea8da4959440e23447b7fc">00411</a>   uint8_t        <a class="code" href="structble__gap__evt__adv__report__t.html#a474b7a5444ea8da4959440e23447b7fc">scan_rsp</a>;                      
<a name="l00412"></a><a class="code" href="structble__gap__evt__adv__report__t.html#a1d127017fb298b889f4ba24752d08b8e">00412</a>   uint8_t        <a class="code" href="structble__gap__evt__adv__report__t.html#a1d127017fb298b889f4ba24752d08b8e">type</a>;                          
<a name="l00413"></a><a class="code" href="structble__gap__evt__adv__report__t.html#a746b85fa7671fe0ebe419dd23902742e">00413</a>   uint8_t        <a class="code" href="structble__gap__evt__adv__report__t.html#a746b85fa7671fe0ebe419dd23902742e">dlen</a>;                          
<a name="l00414"></a><a class="code" href="structble__gap__evt__adv__report__t.html#a4916161d998cedae843eefeb3e66f281">00414</a>   uint8_t        data[<a class="code" href="group___b_l_e___g_a_p.html#ga6d6ae1b58ea2dc641e4dc30e8e2dcc0b" title="Maximum size of advertising data in octets.">BLE_GAP_ADV_MAX_SIZE</a>];    
<a name="l00415"></a>00415 } <a class="code" href="structble__gap__evt__adv__report__t.html" title="Event data for advertisement report event.">ble_gap_evt_adv_report_t</a>;
<a name="l00416"></a>00416 
<a name="l00417"></a>00417  
<a name="l00419"></a>00419 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00420"></a>00420 {
<a name="l00421"></a><a class="code" href="structble__gap__evt__connected__t.html#a8481b11d618ee6688b80f1d55e97768d">00421</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a>        <a class="code" href="structble__gap__evt__connected__t.html#a8481b11d618ee6688b80f1d55e97768d">peer_addr</a>;              
<a name="l00422"></a><a class="code" href="structble__gap__evt__connected__t.html#ae5fc2e8b5bfdb7210f8270d8924f190e">00422</a>   uint8_t               irk_match :1;           
<a name="l00423"></a><a class="code" href="structble__gap__evt__connected__t.html#ad810815a0183f328b69cad031ca2de3f">00423</a>   uint8_t               irk_match_idx  :7;      
<a name="l00424"></a><a class="code" href="structble__gap__evt__connected__t.html#a8dfa0c1911f7e201f485d15701d3de40">00424</a>   <a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a> <a class="code" href="structble__gap__evt__connected__t.html#a8dfa0c1911f7e201f485d15701d3de40">conn_params</a>;            
<a name="l00425"></a>00425 } <a class="code" href="structble__gap__evt__connected__t.html" title="Event data for connected event.">ble_gap_evt_connected_t</a>;
<a name="l00426"></a>00426 
<a name="l00427"></a>00427 
<a name="l00429"></a>00429 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00430"></a>00430 {
<a name="l00431"></a><a class="code" href="structble__gap__evt__disconnected__t.html#a8481b11d618ee6688b80f1d55e97768d">00431</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> <a class="code" href="structble__gap__evt__disconnected__t.html#a8481b11d618ee6688b80f1d55e97768d">peer_addr</a>;                     
<a name="l00432"></a><a class="code" href="structble__gap__evt__disconnected__t.html#ada17c117060406a3a2871c6856dd0205">00432</a>   uint8_t <a class="code" href="structble__gap__evt__disconnected__t.html#ada17c117060406a3a2871c6856dd0205">reason</a>;                               
<a name="l00433"></a>00433 } <a class="code" href="structble__gap__evt__disconnected__t.html" title="Event data for disconnected event.">ble_gap_evt_disconnected_t</a>;
<a name="l00434"></a>00434 
<a name="l00435"></a>00435 
<a name="l00437"></a>00437 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00438"></a>00438 {
<a name="l00439"></a><a class="code" href="structble__gap__evt__conn__param__update__t.html#a8dfa0c1911f7e201f485d15701d3de40">00439</a>   <a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a> <a class="code" href="structble__gap__evt__conn__param__update__t.html#a8dfa0c1911f7e201f485d15701d3de40">conn_params</a>;            
<a name="l00440"></a>00440 } <a class="code" href="structble__gap__evt__conn__param__update__t.html" title="Event data for connection parameter update event.">ble_gap_evt_conn_param_update_t</a>;
<a name="l00441"></a>00441 
<a name="l00442"></a>00442 
<a name="l00444"></a>00444 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00445"></a>00445 {
<a name="l00446"></a><a class="code" href="structble__gap__evt__sec__params__request__t.html#a2a29a8a41643431f99b02e2dea503a08">00446</a>   <a class="code" href="structble__gap__sec__params__t.html" title="GAP security parameters.">ble_gap_sec_params_t</a> <a class="code" href="structble__gap__evt__sec__params__request__t.html#a2a29a8a41643431f99b02e2dea503a08">peer_params</a>;             
<a name="l00447"></a>00447 } <a class="code" href="structble__gap__evt__sec__params__request__t.html" title="Event data for security parameters request event.">ble_gap_evt_sec_params_request_t</a>;
<a name="l00448"></a>00448 
<a name="l00449"></a>00449 
<a name="l00451"></a>00451 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00452"></a>00452 {
<a name="l00453"></a><a class="code" href="structble__gap__evt__sec__info__request__t.html#a8481b11d618ee6688b80f1d55e97768d">00453</a>   <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> <a class="code" href="structble__gap__evt__sec__info__request__t.html#a8481b11d618ee6688b80f1d55e97768d">peer_addr</a>;                     
<a name="l00454"></a><a class="code" href="structble__gap__evt__sec__info__request__t.html#aa1147a1ab6ff4c36934461ca71d73bef">00454</a>   uint16_t       <a class="code" href="structble__gap__evt__sec__info__request__t.html#aa1147a1ab6ff4c36934461ca71d73bef">div</a>;                           
<a name="l00455"></a><a class="code" href="structble__gap__evt__sec__info__request__t.html#aa4962763fc2e11203f54e2978c1b5934">00455</a>   uint8_t        enc_info  : 1;                 
<a name="l00456"></a><a class="code" href="structble__gap__evt__sec__info__request__t.html#add9847e20037aa83079419e5ca92ed0c">00456</a>   uint8_t        id_info   : 1;                 
<a name="l00457"></a><a class="code" href="structble__gap__evt__sec__info__request__t.html#a695085cedbbac02bcebdf981d8b5e9b2">00457</a>   uint8_t        sign_info : 1;                 
<a name="l00458"></a>00458 } <a class="code" href="structble__gap__evt__sec__info__request__t.html" title="Event data for securito info request event.">ble_gap_evt_sec_info_request_t</a>;
<a name="l00459"></a>00459 
<a name="l00460"></a>00460 
<a name="l00462"></a>00462 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00463"></a>00463 {
<a name="l00464"></a><a class="code" href="structble__gap__evt__passkey__display__t.html#a00c696cd66655c546d9fa03f8db62374">00464</a>   uint8_t passkey[6];                           
<a name="l00465"></a>00465 } <a class="code" href="structble__gap__evt__passkey__display__t.html" title="Event data for passkey display event.">ble_gap_evt_passkey_display_t</a>;
<a name="l00466"></a>00466 
<a name="l00467"></a>00467 
<a name="l00469"></a>00469 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00470"></a>00470 {
<a name="l00471"></a><a class="code" href="structble__gap__evt__auth__key__request__t.html#a3218f7a920b683ef4202118095c00f7c">00471</a>   uint8_t <a class="code" href="structble__gap__evt__auth__key__request__t.html#a3218f7a920b683ef4202118095c00f7c">key_type</a>;                             
<a name="l00472"></a>00472 } <a class="code" href="structble__gap__evt__auth__key__request__t.html" title="Event data for authentication key request event.">ble_gap_evt_auth_key_request_t</a>;
<a name="l00473"></a>00473 
<a name="l00474"></a>00474 
<a name="l00478"></a>00478 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00479"></a>00479 {
<a name="l00480"></a><a class="code" href="structble__gap__sec__levels__t.html#ad780f585948c9fe2177f90e30cdbf010">00480</a>   uint8_t lv1 : 1;                              
<a name="l00481"></a><a class="code" href="structble__gap__sec__levels__t.html#ab0ecfea17fe6aecd86f9eadbd187189d">00481</a>   uint8_t lv2 : 1;                              
<a name="l00482"></a><a class="code" href="structble__gap__sec__levels__t.html#a81ff98da09afe10b54677dade2af5330">00482</a>   uint8_t lv3 : 1;                              
<a name="l00483"></a>00483 } <a class="code" href="structble__gap__sec__levels__t.html" title="Security levels supported.">ble_gap_sec_levels_t</a>;
<a name="l00484"></a>00484 
<a name="l00485"></a>00485 
<a name="l00487"></a>00487 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00488"></a>00488 {
<a name="l00489"></a><a class="code" href="structble__gap__sec__keys__t.html#a942dab547fa5212303f7e75d9daf9689">00489</a>   uint8_t ltk       : 1;                        
<a name="l00490"></a><a class="code" href="structble__gap__sec__keys__t.html#a58d8f58450bd6a6c2105d7a747797db6">00490</a>   uint8_t ediv_rand : 1;                        
<a name="l00491"></a><a class="code" href="structble__gap__sec__keys__t.html#a358a5fbd848bb53e613d52ed56096e0f">00491</a>   uint8_t irk       : 1;                        
<a name="l00492"></a><a class="code" href="structble__gap__sec__keys__t.html#af3f726014b044194def151079f1f2d89">00492</a>   uint8_t address   : 1;                        
<a name="l00493"></a><a class="code" href="structble__gap__sec__keys__t.html#add50c5dca8ac0129376740a2a5e6802d">00493</a>   uint8_t csrk      : 1;                        
<a name="l00494"></a>00494 } <a class="code" href="structble__gap__sec__keys__t.html" title="Keys that have been exchanged.">ble_gap_sec_keys_t</a>;
<a name="l00495"></a>00495 
<a name="l00496"></a>00496 
<a name="l00498"></a>00498 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00499"></a>00499 {
<a name="l00500"></a><a class="code" href="structble__gap__evt__auth__status__t.html#a5d66bdfc59228afe1d5ab8871ff2319c">00500</a>   uint8_t               <a class="code" href="structble__gap__evt__auth__status__t.html#a5d66bdfc59228afe1d5ab8871ff2319c">auth_status</a>;            
<a name="l00501"></a><a class="code" href="structble__gap__evt__auth__status__t.html#aa4cd3daf05b7fb19f8b371cc2281c816">00501</a>   uint8_t               <a class="code" href="structble__gap__evt__auth__status__t.html#aa4cd3daf05b7fb19f8b371cc2281c816">error_src</a>;              
<a name="l00502"></a><a class="code" href="structble__gap__evt__auth__status__t.html#a6034cf0feb79f061f9e00947f989ae1e">00502</a>   <a class="code" href="structble__gap__sec__levels__t.html" title="Security levels supported.">ble_gap_sec_levels_t</a>  <a class="code" href="structble__gap__evt__auth__status__t.html#a6034cf0feb79f061f9e00947f989ae1e">sm1_levels</a>;             
<a name="l00503"></a><a class="code" href="structble__gap__evt__auth__status__t.html#a7662a522fecf32711fabba54542c84ee">00503</a>   <a class="code" href="structble__gap__sec__levels__t.html" title="Security levels supported.">ble_gap_sec_levels_t</a>  <a class="code" href="structble__gap__evt__auth__status__t.html#a7662a522fecf32711fabba54542c84ee">sm2_levels</a>;             
<a name="l00504"></a><a class="code" href="structble__gap__evt__auth__status__t.html#afd49e8ab80dac6ba9ea354851fbd5699">00504</a>   <a class="code" href="structble__gap__sec__keys__t.html" title="Keys that have been exchanged.">ble_gap_sec_keys_t</a>    <a class="code" href="structble__gap__evt__auth__status__t.html#afd49e8ab80dac6ba9ea354851fbd5699">periph_kex</a>;             
<a name="l00505"></a><a class="code" href="structble__gap__evt__auth__status__t.html#a3c936cc31ddea7dd51cc522e983a0fa7">00505</a>   <a class="code" href="structble__gap__sec__keys__t.html" title="Keys that have been exchanged.">ble_gap_sec_keys_t</a>    <a class="code" href="structble__gap__evt__auth__status__t.html#a3c936cc31ddea7dd51cc522e983a0fa7">central_kex</a>;            
<a name="l00506"></a>00506   <span class="keyword">struct </span><a class="code" href="structble__gap__evt__auth__status__t_1_1periph__keys__t.html">periph_keys_t</a>
<a name="l00507"></a>00507   {
<a name="l00508"></a><a class="code" href="structble__gap__evt__auth__status__t_1_1periph__keys__t.html#a7eee7ec3b96cc86a0080ab368dae817d">00508</a>     <a class="code" href="structble__gap__enc__info__t.html" title="GAP Encryption Information.">ble_gap_enc_info_t</a>    <a class="code" href="structble__gap__evt__auth__status__t_1_1periph__keys__t.html#a7eee7ec3b96cc86a0080ab368dae817d">enc_info</a>;             
<a name="l00509"></a>00509   } periph_keys;
<a name="l00510"></a>00510   <span class="keyword">struct </span><a class="code" href="structble__gap__evt__auth__status__t_1_1central__keys__t.html">central_keys_t</a>
<a name="l00511"></a>00511   {
<a name="l00512"></a><a class="code" href="structble__gap__evt__auth__status__t_1_1central__keys__t.html#aa65bfccdbaef8d9198bcabe16cffd11c">00512</a>     <a class="code" href="structble__gap__irk__t.html" title="Identity Resolving Key.">ble_gap_irk_t</a>         <a class="code" href="structble__gap__evt__auth__status__t_1_1central__keys__t.html#aa65bfccdbaef8d9198bcabe16cffd11c">irk</a>;                  
<a name="l00513"></a><a class="code" href="structble__gap__evt__auth__status__t_1_1central__keys__t.html#a21259687103b76c7d7debc1c9ecc739d">00513</a>     <a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a>        <a class="code" href="structble__gap__evt__auth__status__t_1_1central__keys__t.html#a21259687103b76c7d7debc1c9ecc739d">id_info</a>;              
<a name="l00514"></a>00514   } central_keys;
<a name="l00515"></a>00515 } <a class="code" href="structble__gap__evt__auth__status__t.html" title="Event data for authentication status event.">ble_gap_evt_auth_status_t</a>;
<a name="l00516"></a>00516 
<a name="l00517"></a>00517 
<a name="l00519"></a>00519 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00520"></a>00520 {
<a name="l00521"></a><a class="code" href="structble__gap__evt__conn__sec__update__t.html#afbc196b6320d3b2d24d832ab32183a4d">00521</a>   <a class="code" href="structble__gap__conn__sec__t.html" title="GAP connection security status.">ble_gap_conn_sec_t</a> <a class="code" href="structble__gap__evt__conn__sec__update__t.html#afbc196b6320d3b2d24d832ab32183a4d">conn_sec</a>;                  
<a name="l00522"></a>00522 } <a class="code" href="structble__gap__evt__conn__sec__update__t.html" title="Event data for connection security update event.">ble_gap_evt_conn_sec_update_t</a>;
<a name="l00523"></a>00523 
<a name="l00524"></a>00524 
<a name="l00526"></a>00526 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00527"></a>00527 {
<a name="l00528"></a><a class="code" href="structble__gap__evt__timeout__t.html#af5eca485cd2b34522478907d4c8f5bc6">00528</a>   uint8_t <a class="code" href="structble__gap__evt__timeout__t.html#af5eca485cd2b34522478907d4c8f5bc6">src</a>;                                  
<a name="l00529"></a>00529 } <a class="code" href="structble__gap__evt__timeout__t.html" title="Event data for timeout event.">ble_gap_evt_timeout_t</a>;
<a name="l00530"></a>00530 
<a name="l00531"></a>00531 
<a name="l00533"></a>00533 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00534"></a>00534 {
<a name="l00535"></a><a class="code" href="structble__gap__evt__rssi__changed__t.html#a3b962e67ba74725bd60ca3c29f785abe">00535</a>   int8_t  <a class="code" href="structble__gap__evt__rssi__changed__t.html#a3b962e67ba74725bd60ca3c29f785abe">rssi</a>;                               
<a name="l00536"></a>00536 } <a class="code" href="structble__gap__evt__rssi__changed__t.html" title="Event data for advertisement report event.">ble_gap_evt_rssi_changed_t</a>;
<a name="l00537"></a>00537 
<a name="l00538"></a>00538 
<a name="l00539"></a>00539 
<a name="l00541"></a>00541 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00542"></a>00542 {
<a name="l00543"></a><a class="code" href="structble__gap__evt__t.html#a0d5ffe38d68e48d81e61fc6a4999ae68">00543</a>   uint16_t <a class="code" href="structble__gap__evt__t.html#a0d5ffe38d68e48d81e61fc6a4999ae68">conn_handle</a>;                                     
<a name="l00544"></a>00544   <span class="keyword">union                                                     </span>
<a name="l00545"></a>00545   {
<a name="l00546"></a><a class="code" href="structble__gap__evt__t.html#af277b3dc273cb9bcdc27eafc552b3c69">00546</a>     <a class="code" href="structble__gap__evt__adv__report__t.html" title="Event data for advertisement report event.">ble_gap_evt_adv_report_t</a>         <a class="code" href="structble__gap__evt__t.html#af277b3dc273cb9bcdc27eafc552b3c69">device_report</a>;         
<a name="l00547"></a><a class="code" href="structble__gap__evt__t.html#a9864b5931270a6958035ebdcf82076f4">00547</a>     <a class="code" href="structble__gap__evt__connected__t.html" title="Event data for connected event.">ble_gap_evt_connected_t</a>          <a class="code" href="structble__gap__evt__t.html#a9864b5931270a6958035ebdcf82076f4">connected</a>;             
<a name="l00548"></a><a class="code" href="structble__gap__evt__t.html#a98f1005ba85566409eaa9746be65f4da">00548</a>     <a class="code" href="structble__gap__evt__disconnected__t.html" title="Event data for disconnected event.">ble_gap_evt_disconnected_t</a>       <a class="code" href="structble__gap__evt__t.html#a98f1005ba85566409eaa9746be65f4da">disconnected</a>;          
<a name="l00549"></a><a class="code" href="structble__gap__evt__t.html#a1a90205e27085e2a3c7e82502c8ae008">00549</a>     <a class="code" href="structble__gap__evt__conn__param__update__t.html" title="Event data for connection parameter update event.">ble_gap_evt_conn_param_update_t</a>  <a class="code" href="structble__gap__evt__t.html#a1a90205e27085e2a3c7e82502c8ae008">conn_param_update</a>;     
<a name="l00550"></a><a class="code" href="structble__gap__evt__t.html#a990ec7701f525b981b15e344644b709c">00550</a>     <a class="code" href="structble__gap__evt__sec__params__request__t.html" title="Event data for security parameters request event.">ble_gap_evt_sec_params_request_t</a> <a class="code" href="structble__gap__evt__t.html#a990ec7701f525b981b15e344644b709c">sec_params_request</a>;    
<a name="l00551"></a><a class="code" href="structble__gap__evt__t.html#a5f04f763d053c94297246b6ed351c66a">00551</a>     <a class="code" href="structble__gap__evt__sec__info__request__t.html" title="Event data for securito info request event.">ble_gap_evt_sec_info_request_t</a>   <a class="code" href="structble__gap__evt__t.html#a5f04f763d053c94297246b6ed351c66a">sec_info_request</a>;      
<a name="l00552"></a><a class="code" href="structble__gap__evt__t.html#ac695382714058c5e906596c0a18332c4">00552</a>     <a class="code" href="structble__gap__evt__passkey__display__t.html" title="Event data for passkey display event.">ble_gap_evt_passkey_display_t</a>    <a class="code" href="structble__gap__evt__t.html#ac695382714058c5e906596c0a18332c4">passkey_display</a>;       
<a name="l00553"></a><a class="code" href="structble__gap__evt__t.html#aac13acd7cdb443c414650b8b5c3d17ff">00553</a>     <a class="code" href="structble__gap__evt__auth__key__request__t.html" title="Event data for authentication key request event.">ble_gap_evt_auth_key_request_t</a>   <a class="code" href="structble__gap__evt__t.html#aac13acd7cdb443c414650b8b5c3d17ff">auth_key_request</a>;      
<a name="l00554"></a><a class="code" href="structble__gap__evt__t.html#a350f0c3a127499fb3d522d361554e3eb">00554</a>     <a class="code" href="structble__gap__evt__auth__status__t.html" title="Event data for authentication status event.">ble_gap_evt_auth_status_t</a>        <a class="code" href="structble__gap__evt__t.html#a350f0c3a127499fb3d522d361554e3eb">auth_status</a>;           
<a name="l00555"></a><a class="code" href="structble__gap__evt__t.html#a28ab9c70f88366efe5ed4ee3484783c4">00555</a>     <a class="code" href="structble__gap__evt__conn__sec__update__t.html" title="Event data for connection security update event.">ble_gap_evt_conn_sec_update_t</a>    <a class="code" href="structble__gap__evt__t.html#a28ab9c70f88366efe5ed4ee3484783c4">conn_sec_update</a>;       
<a name="l00556"></a><a class="code" href="structble__gap__evt__t.html#a17e289da592e731cde1451c2d5f3f24a">00556</a>     <a class="code" href="structble__gap__evt__timeout__t.html" title="Event data for timeout event.">ble_gap_evt_timeout_t</a>            <a class="code" href="structble__gap__evt__t.html#a17e289da592e731cde1451c2d5f3f24a">timeout</a>;               
<a name="l00557"></a><a class="code" href="structble__gap__evt__t.html#a72b852f3447c79858f559a82673b939e">00557</a>     <a class="code" href="structble__gap__evt__rssi__changed__t.html" title="Event data for advertisement report event.">ble_gap_evt_rssi_changed_t</a>       <a class="code" href="structble__gap__evt__t.html#a72b852f3447c79858f559a82673b939e">rssi_changed</a>;          
<a name="l00558"></a>00558   } params;
<a name="l00559"></a>00559 
<a name="l00560"></a>00560 } <a class="code" href="structble__gap__evt__t.html" title="GAP event callback event structure.">ble_gap_evt_t</a>;
<a name="l00561"></a>00561 
<a name="l00562"></a>00562 
<a name="l00571"></a>00571 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a313fb3d1fb123ab3eb11183530080590">SVC_BLE_GAP_ADDRESS_SET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga524b5d94f703242506d371cc56775967" title="Set local Bluetooth address.">ble_gap_address_set</a>(<a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> const * const p_addr);
<a name="l00572"></a>00572 
<a name="l00573"></a>00573 
<a name="l00581"></a>00581 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a037bc32d190f862e1cb41adae7013d02">SVC_BLE_GAP_ADDRESS_GET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga98377d48567e98f371a1f73722dae312" title="Get local Bluetooth address.">ble_gap_address_get</a>(<a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> * const p_addr);
<a name="l00582"></a>00582 
<a name="l00583"></a>00583 
<a name="l00602"></a>00602 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a792241f639def89dc40dc5503c4f2ae0">SVC_BLE_GAP_ADV_DATA_SET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga47c019be89deea8764244ff3b5f20184" title="Set or update advertisement data fields.">ble_gap_adv_data_set</a>(uint8_t const * const p_data, uint8_t dlen, uint8_t const * const p_sr_data, uint8_t srdlen);
<a name="l00603"></a>00603 
<a name="l00604"></a>00604 
<a name="l00616"></a>00616 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab22135018306dd20c0e1cda4344d56e0">SVC_BLE_GAP_ADV_START</a>) <a class="code" href="group___b_l_e___g_a_p.html#gabdbf78c3a8b09c6f2fb92d8733096af8" title="Start advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).">ble_gap_adv_start</a>(<a class="code" href="structble__gap__adv__params__t.html" title="GAP advertising parameters.">ble_gap_adv_params_t</a> const * const p_adv_params);
<a name="l00617"></a>00617 
<a name="l00618"></a>00618 
<a name="l00624"></a>00624 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388afcf97c9e4df93974c7c981da264cf591">SVC_BLE_GAP_ADV_STOP</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga9c37d82f7855abd7417010d8a04c9718" title="Stop advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).">ble_gap_adv_stop</a>(<span class="keywordtype">void</span>);
<a name="l00625"></a>00625 
<a name="l00626"></a>00626 
<a name="l00633"></a>00633 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388abbc353cac52427644531fedb4decb613">SVC_BLE_GAP_SCAN_START</a>) <a class="code" href="group___b_l_e___g_a_p.html#gaeaaa1b600b55399707f99e9e45ff4177" title="Start scanning (GAP Discovery procedure, Observer Procedure).">ble_gap_scan_start</a>(<a class="code" href="structble__gap__scan__params__t.html" title="GAP scanning parameters.">ble_gap_scan_params_t</a> const * const p_scan_params);
<a name="l00634"></a>00634 
<a name="l00635"></a>00635 
<a name="l00641"></a>00641 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388aab6587e43f9b598873b0449d5460b278">SVC_BLE_GAP_SCAN_STOP</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga526e142f279fc74c535a51e77626c5f2" title="Stop scanning (GAP Discovery procedure, Observer Procedure).">ble_gap_scan_stop</a>(<span class="keywordtype">void</span>);
<a name="l00642"></a>00642 
<a name="l00643"></a>00643 
<a name="l00651"></a>00651 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a47c8e8e10359119fa29f1a8a7a2564da">SVC_BLE_GAP_CONNECT</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga760842d5b9840504f1be79387f376d90" title="Create a connection (GAP Link Establishment).">ble_gap_connect</a>(<a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> const * const p_peer_addr, <a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a> const * const p_conn_params);
<a name="l00652"></a>00652 
<a name="l00653"></a>00653 
<a name="l00660"></a>00660 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a2b0a42a3288defd163ac7527f03b2cfb">SVC_BLE_GAP_CONNECT_CANCEL</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga37b68c3e73fecc8254972b9ce9c99797" title="Cancel a connection establishment.">ble_gap_connect_cancel</a>(<a class="code" href="structble__gap__addr__t.html" title="Bluetooth Low Energy address.">ble_gap_addr_t</a> const * const p_peer_addr);
<a name="l00661"></a>00661 
<a name="l00662"></a>00662 
<a name="l00681"></a>00681 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a215cd60fbc5f2c0a73892f1fedbb6f09">SVC_BLE_GAP_CONN_PARAM_UPDATE</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga0f9c19bde4ab1e2f8a3a697908c91368" title="Update connection parameters.">ble_gap_conn_param_update</a>(uint16_t conn_handle, <a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a> const * const p_conn_params);
<a name="l00682"></a>00682 
<a name="l00683"></a>00683 
<a name="l00693"></a>00693 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a74cf376ccf8351e0d610249f6a51973a">SVC_BLE_GAP_DISCONNECT</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga1b72b0bedcc2ff560582527aee8e6416" title="Disconnect (GAP Link Termination).">ble_gap_disconnect</a>(uint16_t conn_handle, uint8_t hci_status_code);
<a name="l00694"></a>00694 
<a name="l00695"></a>00695 
<a name="l00703"></a>00703 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a3474bf6d7a4463932a32273d2ebc2974">SVC_BLE_GAP_TX_POWER_SET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga99d6ed3853b41dba78dda05a51123986" title="Set the radio&#39;s transmit power.">ble_gap_tx_power_set</a>(int8_t tx_power);
<a name="l00704"></a>00704 
<a name="l00705"></a>00705 
<a name="l00714"></a>00714 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a0a669a1117de62a62d8dead7022fd860">SVC_BLE_GAP_APPEARANCE_SET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga711f129fb97e0071ab04d2e994125f7a" title="Set GAP Appearance field.">ble_gap_appearance_set</a>(uint16_t appearance);
<a name="l00715"></a>00715 
<a name="l00716"></a>00716 
<a name="l00724"></a>00724 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a93075ab436906799527e861b38a4d7e7">SVC_BLE_GAP_APPEARANCE_GET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga29a7e84cb12d20e01e99d99ed1d3b5d1" title="Get GAP Appearance field.">ble_gap_appearance_get</a>(uint16_t * const p_appearance);
<a name="l00725"></a>00725 
<a name="l00726"></a>00726 
<a name="l00735"></a>00735 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a7dad266415e81a1c4645af197d6787e3">SVC_BLE_GAP_PPCP_SET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga28e0062141d77d7b2272fc3a6b6e17c5" title="Set GAP Peripheral Preferred Connection Parameters.">ble_gap_ppcp_set</a>(<a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a> const * const p_conn_params);
<a name="l00736"></a>00736 
<a name="l00737"></a>00737 
<a name="l00745"></a>00745 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab95d8cfdfd3181fd39a657b1173ea7cf">SVC_BLE_GAP_PPCP_GET</a>) <a class="code" href="group___b_l_e___g_a_p.html#gafece35b7f8a4abcf297c18f1e947be1a" title="Get GAP Peripheral Preferred Connection Parameters.">ble_gap_ppcp_get</a>(<a class="code" href="structble__gap__conn__params__t.html" title="GAP connection parameters.">ble_gap_conn_params_t</a> * const p_conn_params);
<a name="l00746"></a>00746 
<a name="l00747"></a>00747 
<a name="l00758"></a>00758 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a1f819b01705c2d8ade78da44c76030cf">SVC_BLE_GAP_DEVICE_NAME_SET</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga7d665aa56f8d248b8779a6cf170e2052" title="Set GAP device name.">ble_gap_device_name_set</a>(<a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> const * const p_sec_mode, uint8_t const * const p_dev_name);
<a name="l00759"></a>00759 
<a name="l00760"></a>00760 
<a name="l00770"></a>00770 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ad5892689bd3ea0b6e838a418adc49ab5">SVC_BLE_GAP_DEVICE_NAME_GET</a>) <a class="code" href="group___b_l_e___g_a_p.html#gae257a1419d35e64dd029f29cd863ee84" title="Get GAP device name.">ble_gap_device_name_get</a>(uint8_t * const p_dev_name, uint8_t * const p_len);
<a name="l00771"></a>00771 
<a name="l00772"></a>00772 
<a name="l00792"></a>00792 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ac92325630b62ce381bb4a9b0f6c78754">SVC_BLE_GAP_AUTHENTICATE</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga3dda6bbc1387aecee1f9dde1e78f197d" title="Initiate GAP Authentication procedure.">ble_gap_authenticate</a>(uint16_t conn_handle, <a class="code" href="structble__gap__sec__params__t.html" title="GAP security parameters.">ble_gap_sec_params_t</a> const * const p_sec_params);
<a name="l00793"></a>00793 
<a name="l00794"></a>00794 
<a name="l00810"></a>00810 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab5d784f318769174494b39ab40f509d5">SVC_BLE_GAP_SEC_PARAMS_REPLY</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga5339c2562371354a0e3752b86214b92a" title="Reply with GAP security parameters.">ble_gap_sec_params_reply</a>(uint16_t conn_handle, uint8_t sec_status, <a class="code" href="structble__gap__sec__params__t.html" title="GAP security parameters.">ble_gap_sec_params_t</a> const * const p_sec_params);
<a name="l00811"></a>00811 
<a name="l00812"></a>00812 
<a name="l00830"></a>00830 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388acb306b447341b9b4724bf47d112e1984">SVC_BLE_GAP_AUTH_KEY_REPLY</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga70085abea4443877a5b8f33d130775b9" title="Reply with an authentication key.">ble_gap_auth_key_reply</a>(uint16_t conn_handle, uint8_t key_type, uint8_t const * const key);
<a name="l00831"></a>00831 
<a name="l00832"></a>00832 
<a name="l00847"></a>00847 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a2bcbc0d87a5899f52422477a890d7a1d">SVC_BLE_GAP_SEC_INFO_REPLY</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga31de499e23c1d7876612af2fa65f3c46" title="Reply with GAP security information.">ble_gap_sec_info_reply</a>(uint16_t conn_handle, <a class="code" href="structble__gap__enc__info__t.html" title="GAP Encryption Information.">ble_gap_enc_info_t</a> const * const p_enc_info, <a class="code" href="structble__gap__sign__info__t.html" title="GAP Signing Information.">ble_gap_sign_info_t</a> const * const p_sign_info);
<a name="l00848"></a>00848 
<a name="l00849"></a>00849 
<a name="l00859"></a>00859 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ac15ea2205b551c53a9325ef59d59c6e4">SVC_BLE_GAP_CONN_SEC_GET</a>) <a class="code" href="group___b_l_e___g_a_p.html#gacecf592516b7a6f84fafd77ae4d96478" title="Get the current connection security.">ble_gap_conn_sec_get</a>(uint16_t conn_handle, <a class="code" href="structble__gap__conn__sec__t.html" title="GAP connection security status.">ble_gap_conn_sec_t</a> * const p_conn_sec);
<a name="l00860"></a>00860 
<a name="l00861"></a>00861 
<a name="l00872"></a>00872 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388a493a28e8f7fe2602e59381cf95ca9508">SVC_BLE_GAP_RSSI_START</a>) <a class="code" href="group___b_l_e___g_a_p.html#gaaee3c336775cd4d40525684e3881d3b5" title="Start reporting the received singnal strength to the application.">ble_gap_rssi_start</a>(uint16_t conn_handle);
<a name="l00873"></a>00873 
<a name="l00874"></a>00874 
<a name="l00886"></a>00886 uint32_t SVCALL(<a class="code" href="group___b_l_e___g_a_p.html#gga385c44f6fb256e5716a2302a5b940388ab089183ea13ab23435a405610cab44cc">SVC_BLE_GAP_RSSI_STOP</a>) <a class="code" href="group___b_l_e___g_a_p.html#ga6bd5cc20040e31eef6a9e8992668bc98" title="Stop reporting the received singnal strength.">ble_gap_rssi_stop</a>(uint16_t conn_handle);
<a name="l00887"></a>00887 
<a name="l00888"></a>00888 
<a name="l00889"></a>00889 <span class="preprocessor">#endif // BLE_GAP_H__</span>
<a name="l00890"></a>00890 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>ble_gap.h</b>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
